import { createRouter, createWebHistory } from 'vue-router'
// import Layout from '@/views/Layout/index.vue'
const Layout = () => import('@/views/Layout/index.vue')
const Home = () => import('@/views/Home/index.vue')

const routes = [
  {
    path: '/',
    name: 'Layout',
    component: Layout,
    children: [
      { path: '', component: Home }
    ]
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
